﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FichoWeb.Models
{
    public class UserModel
    {
        public User findUser(int id)
        {
            using (FichoContext context = new FichoContext())
            {
                var user = context.Users.Find(id);
                return user;
            }
        }
    }
}